<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Elisa3: e_remote_control.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Elisa3
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('e__remote__control_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">e_remote_control.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="e__remote__control_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/********************************************************************************</span>
<a name="l00002"></a>00002 <span class="comment"></span>
<a name="l00003"></a>00003 <span class="comment">                        control IR receiver module                                                              </span>
<a name="l00004"></a>00004 <span class="comment">                        september 2005 : first version                                                  </span>
<a name="l00005"></a>00005 <span class="comment">                        Valentin Longchamp</span>
<a name="l00006"></a>00006 <span class="comment"></span>
<a name="l00007"></a>00007 <span class="comment"></span>
<a name="l00008"></a>00008 <span class="comment">This file is part of the e-puck library license.</span>
<a name="l00009"></a>00009 <span class="comment">See http://www.e-puck.org/index.php?option=com_content&amp;task=view&amp;id=18&amp;Itemid=45</span>
<a name="l00010"></a>00010 <span class="comment"></span>
<a name="l00011"></a>00011 <span class="comment">(c) 2004-2007 Valentin Longchamp</span>
<a name="l00012"></a>00012 <span class="comment"></span>
<a name="l00013"></a>00013 <span class="comment">Robotics system laboratory http://lsro.epfl.ch</span>
<a name="l00014"></a>00014 <span class="comment">Laboratory of intelligent systems http://lis.epfl.ch</span>
<a name="l00015"></a>00015 <span class="comment">Swarm intelligent systems group http://swis.epfl.ch</span>
<a name="l00016"></a>00016 <span class="comment">EPFL Ecole polytechnique federale de Lausanne http://www.epfl.ch</span>
<a name="l00017"></a>00017 <span class="comment"></span>
<a name="l00018"></a>00018 <span class="comment">**********************************************************************************/</span>
<a name="l00019"></a>00019 
<a name="l00046"></a>00046 <span class="comment">/********************************************************************</span>
<a name="l00047"></a>00047 <span class="comment">*                       control IR receiver module                                                              *</span>
<a name="l00048"></a>00048 <span class="comment">*                       september 2005 : first version                                                  *</span>
<a name="l00049"></a>00049 <span class="comment">*                       Valentin Longchamp                                                                              *</span>
<a name="l00050"></a>00050 <span class="comment">*                                                                                                                                       *</span>
<a name="l00051"></a>00051 <span class="comment">********************************************************************/</span>
<a name="l00052"></a>00052 
<a name="l00088"></a>00088 <span class="preprocessor">#include &lt;avr\io.h&gt;</span>
<a name="l00089"></a>00089 <span class="preprocessor">#include &lt;avr\interrupt.h&gt;</span>
<a name="l00090"></a>00090 <span class="preprocessor">#include &quot;<a class="code" href="variables_8h.html">variables.h</a>&quot;</span>
<a name="l00091"></a>00091 
<a name="l00092"></a>00092 
<a name="l00093"></a>00093 <span class="preprocessor">#ifndef _IR_REMOTE_CONTROLE</span>
<a name="l00094"></a>00094 <span class="preprocessor"></span><span class="preprocessor">#define _IR_REMOTE_CONTROLE</span>
<a name="l00095"></a>00095 <span class="preprocessor"></span>
<a name="l00096"></a><a class="code" href="e__remote__control_8h.html#a62ca51b78468397b2ef98ee55a5e6e2a">00096</a> <span class="preprocessor">#define REMOTE          (PINJ &amp; _BV(PJ6))&gt;&gt;6 //_RB7 //_LATB7</span>
<a name="l00097"></a>00097 <span class="preprocessor"></span><span class="comment">//#define REMOTE_DIR    _TRISB7</span>
<a name="l00098"></a>00098 
<a name="l00099"></a>00099 <span class="comment">/* defines for the keys on the remote controler</span>
<a name="l00100"></a>00100 <span class="comment"> * the numbers 0 to 9 are not defined since they are the same */</span>
<a name="l00101"></a><a class="code" href="e__remote__control_8h.html#a7cd89a29b118e7d3c425cb693ac5ddb9">00101</a> <span class="preprocessor">#define BOTTOMR         10      // -/-- key</span>
<a name="l00102"></a><a class="code" href="e__remote__control_8h.html#ada644e9ae245b412e75e9ce5642bad95">00102</a> <span class="preprocessor"></span><span class="preprocessor">#define BOTTOMl         11      // p&lt;p key</span>
<a name="l00103"></a><a class="code" href="e__remote__control_8h.html#a42d8551dd3f10de6540de8a6fdf05a37">00103</a> <span class="preprocessor"></span><span class="preprocessor">#define STANDBY         12 </span>
<a name="l00104"></a><a class="code" href="e__remote__control_8h.html#a1f61941701e0251593e01aec567e6ceb">00104</a> <span class="preprocessor"></span><span class="preprocessor">#define MUTE            13</span>
<a name="l00105"></a><a class="code" href="e__remote__control_8h.html#ab5ae3648183faf01244f975f6d4e8a59">00105</a> <span class="preprocessor"></span><span class="preprocessor">#define VOL_UP          16</span>
<a name="l00106"></a><a class="code" href="e__remote__control_8h.html#a6786fd74053d41291c8b9e038b22ffa9">00106</a> <span class="preprocessor"></span><span class="preprocessor">#define VOL_DOWN        17</span>
<a name="l00107"></a><a class="code" href="e__remote__control_8h.html#a1171ce1537464ae43cf62a7b2cb624d1">00107</a> <span class="preprocessor"></span><span class="preprocessor">#define CHAN_UP         32</span>
<a name="l00108"></a><a class="code" href="e__remote__control_8h.html#a510234ccb8b76c6830fb0f456364a340">00108</a> <span class="preprocessor"></span><span class="preprocessor">#define CHAN_DOWN       33</span>
<a name="l00109"></a><a class="code" href="e__remote__control_8h.html#a2a658080c7068b34ca1d7c29bbd887ba">00109</a> <span class="preprocessor"></span><span class="preprocessor">#define I_II            35</span>
<a name="l00110"></a><a class="code" href="e__remote__control_8h.html#a700a320c547b6d1b33e90acba7bf7dbd">00110</a> <span class="preprocessor"></span><span class="preprocessor">#define OUT_AUX_1       56</span>
<a name="l00111"></a>00111 <span class="preprocessor"></span>
<a name="l00112"></a>00112 
<a name="l00113"></a>00113 
<a name="l00114"></a>00114 <span class="comment">/* functions */</span>
<a name="l00115"></a>00115 <span class="keywordtype">void</span> <a class="code" href="e__remote__control_8c.html#a39261527e0c41b02844a3e997b127d71" title="Initialise the IR receiver ports.">e_init_remote_control</a>(<span class="keywordtype">void</span>);
<a name="l00116"></a>00116 <span class="keywordtype">void</span> <a class="code" href="e__remote__control_8h.html#aac700a6734ca88289e2786ecf6498042">e_read_remote_control</a>(<span class="keywordtype">void</span>);
<a name="l00117"></a>00117 
<a name="l00118"></a>00118 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="e__remote__control_8c.html#a226d95b54ae2733386c8f6d483b78a3e" title="Read the check bit.">e_get_check</a>(<span class="keywordtype">void</span>);
<a name="l00119"></a>00119 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="e__remote__control_8c.html#a94b404f5de1c9130c01fb84f68e6c393" title="Read the adress of the commande.">e_get_address</a>(<span class="keywordtype">void</span>);
<a name="l00120"></a>00120 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="e__remote__control_8c.html#a538c70a5c0ea32d03634f74a53ed99ae" title="Read the data of the command.">e_get_data</a>(<span class="keywordtype">void</span>);
<a name="l00121"></a>00121 
<a name="l00122"></a>00122 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="e__remote__control_8h.html">e_remote_control.h</a>      </li>

    <li class="footer">Generated on Wed Feb 15 2012 10:27:04 for Elisa3 by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
